<%@page import="com.poi.action.selecttable"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*"
	pageEncoding="UTF-8"%>
	<%@page language="java" import="db_tool.DBConnection" %>
	<%@page language="java" import="java.sql.ResultSet"%>
	<%@page language="java" import="java.sql.Statement"%>

<%@page language="java" import="com.opensymphony.xwork2.ActionContext"%>
<%@page import="javax.servlet.http.HttpServletRequest"%>
<%

String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
 <base href="<%=basePath%>">
<meta http-equiv="X-UA-Compatible" content="edge" />
<meta name="author" content="Daliu"/>
<meta name="keywords" content="长江上游珍稀特有鱼类保护信息管理系统、长江上游、珍稀特有鱼类、保护信息"/>
<meta name="describe" content="长江上游珍稀特有鱼类保护信息管理系统"/>
<title>长江上游珍稀特有鱼类保护信息管理系统</title>
<link href="<%=request.getContextPath()%>/css/register.css"rel="stylesheet"/>
<link href="<%=request.getContextPath()%>/css/main.css"rel="stylesheet"/>
<script type="text/javascript"src="js/jquery-1.12.3.min.js"></script>
</head>
<body>
		<div class="article" style="height: 400px">
		<br/>
		<%
			String tablename = selecttable.tablename ;
			//if(tablename==""||tablename==null||tablename.equals("")||tablename.equals(null))
			if(request.getSession().getAttribute("tablename")==null)
		 {%>
		 		 
<h4 class="useractive">&nbsp;&nbsp;未选中要导入的表</h4>   
<%}else{%>
  <%-- <%
  	response.setHeader("Refresh","1");
  	out.println(new Date());
   %> --%>
<h4 class="useractive">&nbsp;&nbsp;已选中<%=request.getSession().getAttribute("tablename") %></h4>   
			<table class="table" style="margin-right: 20px">
			<form action="import.action" method="post" id="import" enctype="multipart/form-data" target="content">
	         <tr>   <td><a><button class="btn btn-primary">导入</button></a></td>
	         <td>
			<a class="file">导入文件<input type="file" id="upload" value="导入数据" name="upload";></a>
		</td>
	       <td><h5>格式为xls或xlsx</h5></td>  
	         
	         </tr>
	         </form>
	           <tr>    <td><a href="exporttest.action"><button class="btn btn-primary">导出</button></a></td>
	        
	          <td><a href="downloadtest.action"><button class="btn btn-primary">下载样表</button></a></td>
		
	           <td><h5>格式为xls</h5></td>
			     </tr>
			</table>
		</div>
		<%} %>
</body>
</html>